package com.i2works.smartluolong.utils.web;

/**
 * 路径常量
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2017/10/19 20:20
 * @since 包含 _REDIRECT 为跳转的路由RequestMapping
 * @since 包含 _HTML 为html模板页面
 */
@Deprecated
public interface PageConstant {

    /**
     * 公共页面
     */
    interface Common {
        /**
         * 主页
         */
        String INDEX = "/index";
        String REDIRECT = "redirect:";
        /**
         * 消息
         */
        String MESSAGE_HTML = "/common/message.html";
        String MESSAGE_REDIRECT = REDIRECT + "/message.html";
    }

    /**
     * 用户账号
     */
    interface UserAccount {
        String ROOT = "/user";
        /**
         * 用户注册
         */
        String REGISTER_HTML = ROOT + "/register";
        String REGISTER_REDIRECT = Common.REDIRECT + REGISTER_HTML;
        /**
         * 用户登录
         */
        String LOGIN_HTML = ROOT + "/login";
        String LOGIN_REDIRECT = Common.REDIRECT + LOGIN_HTML;
        /**
         * 用户退出
         */
        String LOGOUT_HTML = ROOT + "/logout";
        /**
         * 找回密码
         */
        String PASSWORD_HTML = ROOT + "/password";
        String PASSWORD_REDIRECT = Common.REDIRECT + PASSWORD_HTML;
        /**
         * 找回密码操作
         */
        String RESET_PASSWORD_HTML = ROOT + "/restPassword";
        String RESET_PASSWORD_REDIRECT = Common.REDIRECT + RESET_PASSWORD_HTML;
    }

    /**
     * 用户中心
     */
    interface UserBasic {
        String ROOT = "/control";
        /**
         * 主页
         */
        String INDEX_HTML = ROOT + "/index";
        String INDEX_REDIRECT = Common.REDIRECT + INDEX_HTML;

        /**
         * 信息
         */
        String INFO_HTML = ROOT + "/info";
        String INFO_REDIRECT = Common.REDIRECT + INFO_HTML;

        /**
         * 编辑信息
         */
        String EDIT_INFO_HTML = ROOT + "/editInfo";
        String EDIT_INFO_REDIRECT = Common.REDIRECT + EDIT_INFO_HTML;

        /**
         * 修改密码
         */
        String EDIT_PASSWORD_HTML = ROOT + "/editPassword";
        String EDIT_PASSWORD_REDIRECT = Common.REDIRECT + EDIT_PASSWORD_HTML;


        /**
         * 修改手机号
         */
        String EDIT_PHONE_HTML = ROOT + "/editPhone";
        String EDIT_PHONE_REDIRECT = Common.REDIRECT + EDIT_PHONE_HTML;

        /**
         * 修改支付宝
         */
        String EDIT_ALIPAY_HTML = ROOT + "/editAlipay";
        String EDIT_ALIPAY_REDIRECT = Common.REDIRECT + EDIT_ALIPAY_HTML;

    }

    /**
     * 用户操作
     */
    interface UserAction {
    }

}
